package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class ItemData implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "id")
	private Integer id;
	
	@ApiModelProperty(value = "图片对应主体id")
	private String itemId;
	
	@ApiModelProperty(value = "图片id")
	private String dataId;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "")
	private Date submitTime;
	
	@JsonProperty("id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id =  id;
	}
	@JsonProperty("itemId")
	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId =  itemId;
	}
	@JsonProperty("dataId")
	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId =  dataId;
	}
	@JsonProperty("submitTime")
	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime =  submitTime;
	}

								
	public ItemData(Integer id,String itemId,String dataId,Date submitTime) {
				
		this.id = id;
				
		this.itemId = itemId;
				
		this.dataId = dataId;
				
		this.submitTime = submitTime;
				
	}

	public ItemData() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}